package cn.doitedu.vueapi.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class TypeCastUtil {

    public static SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    public static String date2SqlDatetime(Date date){

        return sdf.format(date);

    }
}
